Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

implemented py-battleship task #314

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

HlovaOleh
Copy link

No description provided.

app/main.py Outdated
pass
def __init__(
self,
start: tuple,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix type hints, please

app/main.py Outdated
Comment on lines 11 to 12
start: tuple,
end: tuple,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
start: tuple,
end: tuple,
start: tuple[int, int],
end: tuple[int, int],

app/main.py Outdated
# If it is, then it should check if this cell is the last alive
# in the ship or not.
pass
def fire(self, location: tuple) -> str:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
def fire(self, location: tuple) -> str:
def fire(self, location: tuple[int, int]) -> str:

@HlovaOleh HlovaOleh requested a review from EdAlekseiev October 10, 2023 18:13
Copy link

@EdAlekseiev EdAlekseiev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants